:root{
  --size: 1440;
}


html{
  font-size: calc(16*100vw/var(--size));
  font-family: 'Libre Baskerville', serif;;
} 

@font-face{
  font-family:'Apercu-Medium';
  src: url('../fonts/FontsFree-Net-ApercuMedium.ttf')
  format('truetype');
  src: local;
}

@media only screen and (min-width:1000px){
  .header {
    z-index: 5;
  }


  a:hover {
    color: gray;
  }

  .works:hover {
    transition: all 0.9s ease-in-out;
    height: 27vw !important;
  }
  
  .works:hover #work__title {
    transition: all 0.5s ease-in-out;
    align-self: start;
    grid-column: 1/17;
    grid-row: 1/2;
    margin-top: 10px;
    align-self: end;
    font-size: 1.6rem;
  }

  .works:hover #work__type {
    transition: all 0.5s ease-in-out;
    display: block;
    color: grey;
  }

  .works:hover #work__img {
    transition: all 0.5s ease-in-out;
    display: block;
  }

  .works:hover .work__desc__container {
    grid-row: 1/3;
    grid-column: 5/12;
    height: 70%;
    align-self: center;
    display: flex;
    font-size: 0.9rem;
    font-family:'Apercu-Medium';
    align-items: center;
    line-height: 1.6;
  }
  
  .works:hover #work__link{
    display:block;
  }

  .archive:hover #arch {
    transition: all 0.3s ease-in-out;
    /* color: #28282a; */
    color: #f7f7f5 ;
    padding-left: 15px;
    background-color: grey;
  }
  
  .archive:hover .triangle__container {
    transition: all 0.3s ease-in-out;
    color: #28282a;
    padding-right: 15px;
    background-color: grey;
   
  }
  
  .archive:hover .triangle {
    transition: all 0.3s ease-in-out;
    border-top: 10px solid #f7f7f5;
  }


  #box:hover::after {
    transform: scaleY(1);
  }

  #arch__list:hover span {
    color: #f7f7f5;
  }
  
  #arch__list:hover #arch__year {
    padding-left: 15px;
  }
  
  #arch__list:hover #arch__link {
    padding-right: 15px;
  }

}

@media only screen and (min-width: 640px){

  .header {
    z-index: 5;
  }

  #box:hover::after {
    transform: scaleY(1);
  }

  #arch__list:hover span {
    color: #f7f7f5;
  }
  
  #arch__list:hover #arch__year {
    padding-left: 15px;
  }
  
  #arch__list:hover #arch__link {
    padding-right: 15px;
  }

  .works:hover {
    transition: all 0.9s ease-in-out;
    height: 35vw;
    /* padding: 50px 0 50px 0; */
    position: relative;
}

  .works:hover #work__title {
    transition: all 0.5s ease-in-out;
    align-self: start;
    grid-column: 1/4;
    grid-row: 1/2;
    margin-top: 0px;
    align-self: end;
    font-size: 1.5rem;
}

.works:hover .work__desc__container {
  grid-row: 1/3;
  grid-column: 4/12;
  height: 70%;
  align-self: center;
  display: flex;
  font-size: 1rem;
  font-family: 'Apercu-Medium';
  align-items: center;
  line-height: 1.6;
}

.works:hover #work__img {
  transition: all 0.5s ease-in-out;
  display: block;
}

.works:hover #work__year{
  display:none;
}

.works:hover #work__type {
  transition: all 0.5s ease-in-out;
  font-size: 1rem;
  display: block;
  color: grey;
}

.works:hover #work__link{
  display:block;
  padding-bottom: 10px;
}

.archive:hover #arch {
  transition: all 0.3s ease-in-out;
  /* color: #28282a; */
  color: #f7f7f5 ;
  padding-left: 15px;
  background-color: grey;
}

.archive:hover .triangle__container {
  transition: all 0.3s ease-in-out;
  color: #28282a;
  padding-right: 15px;
  background-color: grey;
 
}

.archive:hover .triangle {
  transition: all 0.3s ease-in-out;
  border-top: 10px solid #f7f7f5;
}

}


body {
  margin: 0;
  max-width: 100vw;
  background-color: #f7f7f5;
  color: #28282a;
}

a {
  color: #28282a;
  text-decoration: underline;
}

a:visited {
  color: #28282a;
}



a:active {
  text-decoration: #28282a;
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
}

.mhead {
  font-size: 1.5rem;
  font-family: 'Apercu-Medium';
}

.mheadB {
  position: relative;
  grid-column: 2/20;
  grid-row: 1/2;
  height: 100px;
  overflow: hidden;
  border-right: 1px solid #28282a;
  border-left: 1px solid #28282a;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}


#yyc {

  margin: 15px;
  color: grey;
}

#cv {
  margin: 15px;
  color: grey;
}

#cv:hover {
  margin: 15px;
  color: black;
}

.mheadLine {
  grid-column: 1/21;
  grid-row: 1/2;
  border-bottom: 1px solid #28282a;
}

.mbody {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(10, auto);
  /* min-height:40vh; */
  overflow: hidden;
  grid-column: 2/20;
  grid-row: 2/3;
  border-right: 1px solid #28282a;
  border-left: 1px solid #28282a;
}

#port {
  grid-column: 5/7;
  grid-row: 1/2;
  font-size: 2rem;
  margin-top: 15px;
}

#first {
  grid-row: 2/3;
  grid-column: 5/11;
  font-size: 9rem;
}

#last {
  grid-row: 3/4;
  grid-column: 11/16;
  font-size: 9rem;
}

#desc {
  grid-row: 4/5;
  grid-column: 5/21;
  font-size: 1rem;
  font-family: 'Apercu-Medium';
  letter-spacing: 1px;
  padding-bottom: 75px;
}

#work {
  grid-row: 5/6;
  grid-column: 5/17;
  border-top: 1px solid #28282a;
  font-size: 2.1rem;
  padding-top: 75px;
  padding-bottom: 75px;
}

.works {
  transition: all 0.9s ease-in-out;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column: 2/20;
  border-top: 1px solid #28282a;
  height: 20vh;
  transition: all 0.9s ease-in-out;
}

.works #work__title {
  align-self: center;
  grid-column: 4/17;
  grid-row: 1/3;
  font-size: 1.3rem;
}



.works #work__type {
  grid-row: 2;
  grid-column: 1;
  align-self: start;
  padding-bottom: 10px;
  display: none;
}



.work__img__container {
  grid-column: 13/19;
  grid-row: 1/3;
  display: grid;
  overflow: hidden;
}

#work__img {
  object-fit: fill;
  height: auto;
  width: 100%;
  align-self: center;
  display: none;
}



.work__desc__container {
  grid-row: 1/3;
  grid-column: 6/12;

  align-self: center;
  display: none;
  position: relative;
}


#work__tech__list {
  list-style-type: none;
  white-space: nowrap;
  font-size: 0.7rem;
  color: grey;
}

#work__link {
  grid-column: 10;
  grid-row: 2/3;
  padding-bottom: 30px;
  font-size: 1rem;
  font-family: 'Apercu-Medium';
  display: none;
  align-self: end;
}



.archive {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-column: 2/20;
  transition: all 0.5s ease-in-out;
}



.archive span {
  transition: all 0.3s ease-in-out;
  align-self: center;
  cursor: pointer;
  grid-row: 1/3;
  font-size: 1.5rem;
  color: grey;

}

.archive #arch {
  
  border-top: 1px solid #28282a;
  padding-top: 15px;
  padding-bottom: 15px;
  grid-column: 1/19;
  border-bottom: 1px solid #28282a;
}



.triangle {
  transition: all 0.3s ease-in-out;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid grey;
  align-self: center;
}

.triangle__container {
  display: grid;
  transition: all 0.3s ease-in-out;
  border-top: #28282a 1px solid;
  border-bottom: #28282a 1px solid;
  padding-right: 10px;
  grid-row: 1/3;
}

.triangle__rotate{
  transform: rotate(-180deg);
  transition: all 0.3s ease-in-out;
  -webkit-transform: rotate(-180deg);
  -ms-transform: rotate(-180deg);
}





.arch__list__container {
  grid-template-rows: repeat(auto-fill, 1fr);
  grid-column: 1/20;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s linear;
}

.arch__open {
  transition: all 0.5s linear;
  display: grid;
  height: auto;
  max-height: 54vh;
  grid-column: 1/20;
}


.arch__header{
  grid-column: 1/-1;
  display: grid;
  padding: 10px 0 10px 0;
  grid-template-columns: repeat(10, 1fr);
  border-bottom: 1px solid #28282a;
  
}

.arch__header span{
  font-size:0.8rem !important;
  color: grey !important;
  cursor: default !important;
}

#arch__list {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: 1fr;
  border-bottom: 1px solid #28282a;
  padding: 15px 0 15px 0;
  z-index: 1;
  text-decoration: none;
}

.arch__list__container span {
  font-family: 'Apercu-Medium';
  font-size: 0.9rem;
  color: #28282a;
  grid-row: 1/2;
}

#box {
  position: relative;
  z-index: 1;
}

#box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: #28282a;
  z-index: -1;
  transition: transform 0.3s;
}



#arch__name {
  grid-column: 3/6;
}

#arch__type {
  grid-column: 8/span2;
}

#arch__link{
  grid-column: -1;
}


#arch__list #test {
  grid-column: 1/20;

  z-index: 10;
}






#contact {
  grid-column: 2/20;
  font-size: 6rem;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  grid-template-rows: repeat(2, auto);
}

#contact__title {
  grid-column: 1/19;
  align-self: center;
  margin-top: 200px;
  margin-bottom: 100px;
  /* margin-left: 50px; */

  /* top: 50px; */
}

#contact__messege {
  grid-row: 2;
  font-size: 1.5rem;
  font-family: 'Apercu-Medium';
  grid-column: 1/11;
  /* text-align: justify; */
  line-height: 1.9;
  margin-bottom: 200px;
}

#contact__skills {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  grid-row: 2/3;
  grid-column: 13/16;
  font-size: 1.2rem;
  font-family:'Apercu-Medium';
  justify-self: center;
}

#contact__skills span {
  color: grey;
  font-size: 0.7em;
  padding: 5px;
  border-top: 2px solid grey;
  
}

.footer{
  display:grid;
  grid-template-columns: repeat(20, 1fr);
  grid-column: 1/-1;
  grid-row: 3/4;
  height:auto;
  border-top: 1px solid #28282a;
}

.footer__container{
  grid-column: 2/-2;
  border-right: 1px solid #28282a;
  border-left: 1px solid #28282a;
  display:grid;
  grid-template-columns: repeat(20, 1fr);

}

#signi{

grid-column: -3/-1;
align-self: center;
font-size: 1rem;
color: grey;
font-family: 'Apercu-Medium';
padding-top: 50px;
padding-bottom: 50px;

}




@media only screen and (max-width: 1000px){
  :root {
    --size: 1000;
  }

  .header {
    z-index: 5;
  }


  .work__img__container {
    grid-column: 13/19;
    grid-row: 1/4;
    display: grid;
    overflow: hidden;
  }
  
  #work__img {
    object-fit: fill;
    height: auto;
    width: 100%;
    align-self: center;
    display: none;
  }

  #work__tech__list {
    display: none;
  }

 

#work__link {
  position: absolute;
  /* grid-column: 4;
  grid-row: 2/3; */

  bottom: 0;
  grid-column: 11;
  padding-bottom: 0px;
  font-size: 1rem;
  font-family: 'Apercu-Medium';
  display: none;
  align-self: end;
}


#contact__title {
  grid-column: 1/-2;
  align-self: center;
  margin-top: 150px;
  margin-bottom: 50px;
}

#contact__messege {
  grid-row: 2;
  font-size: 1.7rem;
  font-family: 'Apercu-Medium';
  grid-column: 1/15;
  /* text-align: justify; */
  line-height: 1.9;
  margin-bottom: 200px;
}

#contact__skills {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  grid-row: 2/3;
  grid-column: 15/-1;
  font-size: 1.2rem;
  font-family: 'Apercu-Medium';
  justify-self: center;
}


}


@media only screen and  (max-width: 640px){
  :root {
    --size: 640;
  }

  .header {
    z-index: 5;
  }

  #first {
    grid-column: 3/7;
    font-size: 6rem;
  }
  
  #last {
    
    font-size: 6rem;
  }
  
  #port {
    margin-top: 30px;
    grid-column: 3/-3;
    font-size: 1.2rem;
   
  }

  #desc {
    grid-column: 3/-3;
    font-size: 1.5rem;
    font-family: 'Apercu-Medium';
    padding-top: 50px;
    padding-bottom: 50px;
}

  #work {
    grid-column: 2/-2; 
    font-size: 2.1rem;
    padding-top: 30px;
    padding-bottom: 30px;
}

.works {
  grid-column: 2/-2;
  display: grid;
  row-gap: 50px;
  grid-template-columns: repeat(18, 1fr);
  grid-template-rows: repeat(7, auto);
  padding: 0px 0 50px 0;
  border-top: 1px solid #28282a;
  height: auto;
}



.works #work__title {
  align-self: center;
  grid-column: 1/17;
  grid-row: 1/2;
  font-size: 1.9rem;
  margin-top: 50px;
}




.works #work__type {
  grid-row: 1;
  grid-column: -2;
  align-self: start;
  margin-top: 50px;
  display:block;
}


.work__img__container {
  grid-column: 1/-1;
  grid-row: 2/6;
  display: grid;
 
}

#work__img {
  object-fit: fill;
  height: auto;
  width: 100%;
  align-self: center;
  display: block;
}



.work__desc__container {
  grid-row: 6/7;
  grid-column: 1/-1;
  font-family: "Apercu-Medium";
  font-size:1.6rem;
  align-self: center;
  display: block;
  position: relative;
  line-height: 1.7;
 
}



#work__link{
  position: relative;
  grid-column: -2;
  grid-row: 7/8;
  font-size: 1.2rem;
  font-family: 'Apercu-Medium';
  display: block;
}



#work__tech__list {
  display: none;
}



#work__year{
  display:none;
}


.arch__list__container span {
  font-family: 'Apercu-Medium';
  font-size: 0.9rem;
  color: #28282a;
  grid-row: 1/2;
}


.archive span {
  
  align-self: center;
  cursor: pointer;
  grid-row: 1/3;
  color: #28282a;
}

.triangle {
  transition: all 0.3s ease-in-out;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #28282a;
  align-self: center;
}

#contact {
  grid-column: 2/20;
  font-size: 3rem;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  grid-template-rows: repeat(2, auto);
}

#contact__title {
  grid-column: 1/-1;
  align-self: center;
  margin-top: 100px;
  margin-left: 0px;
  margin-bottom: 50px;
   /* top: 50px; */
}

#contact__messege {
  grid-row: 2;
  font-size: 1.5rem;
  font-family: 'Apercu-Medium';
  grid-column: 1/-1;
  /* text-align: justify; */
  line-height: 1.9;
  margin-bottom: 100px;
}

#contact__skills {
  display: none;
  
}



}

/* Animation Classes */
.fade-in {
  animation: fadeIn ease 3s;
  -webkit-animation: fadeIn ease 3s;
  -moz-animation: fadeIn ease 3s;
  -o-animation: fadeIn ease 3s;
  -ms-animation: fadeIn ease 3s;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-o-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-ms-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
